Gets the index of the element.
'Declaration
Public Function IndexOf( _
ByVal As _
) As System.Integer
public System.int IndexOf(
)
Parameters
- item
- The element.
Return Value
The zero-based index of element or -1 if element does not exist in the collection.